package cn.com.cnxfs.relaxchat.dao;

import cn.com.cnxfs.relaxchat.entity.Login;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface LoginDao {
    Login login(@Param("username")String username, @Param("password")String password);
    Login search(@Param("username")String username);
    Login getid(@Param("id")int id);
    void add(@Param("username")String username, @Param("password")String password, @Param("nickname")String nickname);
    void update_pass(@Param("id")int id, @Param("password")String password);
    void update_name(@Param("id")int id, @Param("nickname")String nickname);
    void del(@Param("id")int id);
}
